package com.shoulei.designpattern.decoratorPattern;

/**
 * @ClassName:ShapeDecorator
 * @Descrition:
 * @Author:shoulei
 * @Date:2019/4/14 12:48
 * @Verson:
 */
public abstract class ShapeDecorator implements Shape{
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw(){
        decoratedShape.draw();
    }
}
